# CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./output/linux_amd64_netauto main.go
# rm -rf ./output/
# CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o ./output/windows_amd64_netauto.exe main.go
# cp ./conf_ls.json ./output/conf.json

rm -rf ./releases
mkdir -p ./releases/linux_amd64
mkdir -p ./releases/win_amd64

CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o ./releases/win_amd64/windows_amd64_netauto.exe main.go
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./releases/linux_amd64/linux_amd64_netauto main.go

cp ./conf_ls.json ./releases/win_amd64/conf.json
cp ./conf_ls.json ./releases/linux_amd64/conf.json
